:root {
    --header: 66px;
    --themColor: #00bdff;
    --writeColor: #fff;
    --fontColor: #666;
    --borderColor: #dddddd;
}

/* -----------------头部 --------------*/
header {
    top: 0;
    left: 0;
    height: var(--header);
    width: 100%;
    min-width: 1200px;
    z-index: 40;
    background-color: transparent;
    color: var(--fontColor);
    padding: 20px 28px;
    border-bottom: 1px solid #88afe7;
}

/* 头部logo */
header h2 a {
    font-size: 0px;
    display: block;
    width: 140px;
    height: 30px;
    background: url(../images/api-new-logo-white.png) no-repeat;
}

/* 头部导航栏 */
header ul li {
    float: left;
    width: 50px;
    line-height: 64px;
    text-align: center;
    margin-right: 38px;
    cursor: pointer;
}

header ul li a {
    color: var(--fontColor);
}

/* 导航栏激活样式 */
header ul .active a {
    color: var(--themColor);
    font-weight: bold;
}

header ul li.active {
    border-bottom: 3px solid var(--themColor);
}

/* 登录,注册按钮 */
header .login,
header .register {
    border-radius: 20px;
    padding: 6px 15px;
    color: var(--fontColor);
}

header .login a,
header .register a {
    color: var(--color);
}

header .login {
    border: 1px solid var(--fontColor);
    margin-right: 8px;
    background-color: var(--writecolor);
}

header .register {
    color: var(--writeColor);
    background-color: #ed510a;
    border: 1px solid #ed510a;
}



/* ----------------- API分类 ----------------- */
#APIclassify {
    padding: 50px 0;
    box-sizing: border-box;
    margin-top: 66px;
}

#APIclassify h1 {
    font-size: 26px;
    color: var(--fontColor);
    margin-bottom: 23px;
}

#APIclassify ul {
    width: 100%;
    margin-bottom: 50px;
}

#APIclassify ul li {
    float: left;
    padding: 7px 15px;
    margin-right: 12px;
    font-size: 12px;
    color: var(--fontColor);
    border: 1px solid var(--borderColor);
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

/* js激活样式 */
#APIclassify .on {
    border: 1px solid var(--themColor);
    color: var(--themColor);
}

/* js同步点击的内容 */
#APIclassify span {
    font-weight: bold;
    color: var(--fontColor);
    margin-right: 18px;
    font-size: 14px;
}

/* 搜索框 */
#APIclassify input {
    width: 230px;
    height: 28px;
    border: 1px solid var(--borderColor);
    border-radius: 20px;
    padding-left: 15px;
    font-size: 12px;
    /* 放大镜背景图 */
    background: url(../images/magnifier.png) no-repeat 220px 7px #f4f4f4;
}



/* -------------------- API list ----------------- */
#APIlist {
    margin-top: 25px;
    /* height: 200vh; */
    position: relative;
}

.apiList ul li {
    float: left;
    width: 228px;
    height: 270px;
    border: 1px solid var(--borderColor);
    margin-bottom: 15px;
    text-align: center;
    padding: 55px 16px 20px 16px;
    box-sizing: border-box;
    font-size: 12px;
    color: var(--fontColor);
    position: relative;
    overflow: hidden;
}

/* 每个p标签的底部设置距离 */
.apiList ul li p {
    margin-bottom: 15px;
}

/* 让图片水平垂直居中 */
.apiList ul li p:nth-child(2) {
    height: 69px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 未激活时,字体颜色为绿色 */
.apiList ul li p:nth-child(4) {
    color: #29c287;
    font-size: 15px;
}

/* js isSpecial为true时激活样式 价格颜色为红色 */
.apiList ul li p:nth-child(4).red {
    color: red;
}

/* 申请数据 默认隐藏 定位到li外面 */
.apiList ul li .show {
    /* display: none; */
    position: absolute;
    bottom: -50px;
    left: 16px;
    width: 192px;
    height: 32px;
    line-height: 32px;
    background-color: var(--themColor);
    color: var(--writeColor);
    transition: all .3s;
    cursor: pointer;
}

.apiList ul li .show a {
    color: var(--writeColor);
}

/* 鼠标移入,底部滑出 简单*/
.apiList ul li:hover p:nth-child(5) {
    bottom: 0px;
}

.apiList ul li:hover {
    box-shadow: 0px 5px 5px #ccc;
}

/* js添加样式 复杂*/
.apiList ul li .showUp {
    bottom: 0px;
}

/* 用伪元素做 企业专用 */
.apiList ul li .special::before {
    content: "企业专用";
    display: block;
    padding: 4px 8px;
    background-color: #e5f8ff;
    color: var(--themColor);
    position: absolute;
    top: 10px;
    left: 10px;
}

#page {
    /* position: absolute;
    bottom: 0;
    left: 0; */
    width: 300px;
    height: 30px;
    margin: 40px auto;
}

#page ul li {
    float: left;
    width: 20px;
    height: 20px;
    margin-right: 15px;
    border: 1px solid var(--writeColor);
    text-align: center;
    line-height: 20px;
    cursor: pointer;
}

.page ul li.active {
    background-color: var(--themColor);
    color: var(--writeColor);
    border-radius: 50%;
}

/* ------------------蒙层----------- */
#mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 70;
}

/* 登录框 */
#login {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 550px;
    background-color: var(--writeColor);
    z-index: 90;
    padding: 30px 20px;
    box-sizing: border-box;
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
}

/* #login img {
    position: absolute;
    top: 20px;
    left: 25%;
} */

#chose {
    display: flex;
    margin: 30px auto;
    /* margin-top: 100px; */
}

#chose li {
    /* float: left; */
    /* margin-right: 10px; */
    height: 40px;
    width: 200px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
}

#chose>i {
    padding-top: 10px;
    color: var(--fontColor);
}

/* #chose li:nth-child(1) {
    border-right: 1px solid var(--fontColor);
} */

/* #chose li>i {
    height: 40px;
    line-height: 40px;
    color: var(--borderColor);
} */

#chose li.active {
    color: var(--themColor);
    position: relative;
}

#chose li.active::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    content: "";
    display: block;
    height: 2px;
    width: 25%;
    background-color: var(--themColor);
}

#login>.loginCont {
    display: none;
}

#login>.loginCont.on {
    display: block;
}

.loginCont label {
    display: block;
    width: 360px;
    height: 45px;
    margin-bottom: 20px;
    border: none;
    border-bottom: 1px solid var(--borderColor);
    padding-left: 34px;
    box-sizing: border-box;
}

.loginCont input {
    width: 325px;
    height: 40px;
    border: none;
}

.loginCont label:nth-child(1) {
    background: url(../images/loginIcon.png) no-repeat -54px 8px;
}

.loginCont label:nth-child(2) {
    background: url(../images/loginIcon.png) no-repeat -24px 10px;
}

.loginCont button {
    width: 360px;
    height: 46px;
    margin-bottom: 20px;
    color: var(--writeColor);
    background-color: var(--themColor);
    border: none;
}

#loginB {
    width: 290px;
    height: 240px;
    margin: 0 auto;
    background-color: #fcfcfc;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 1px solid var(--borderColor);
}

#loginB img {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
}

#loginB p {
    margin-bottom: 20px;
}

.loginCont>p {
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    color: var(--fontColor);
    margin: 10px 35px;
    position: relative;
}

.loginCont>p>i {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url(../images/loginIcon.png) no-repeat -57px -34px;
}

.loginCont>p>a {
    color: var(--themColor);
}